package demo7;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-03-21
 * Time: 21:30
 */
class Student{
    public String name;
    public int age;
    public double score;

    public Student(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }



    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }

}
class  Age implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return 0;
    }
}
public class Test {
    public static void main(String[] args) {
        Student[] arr = new Student[3];
        arr[0] = new Student("amy",18,30.6);
        arr[1] = new Student("daming",15,90.1);
        arr[2] = new Student("tom",15,26.3);
    }

}
